package com.jiang.droidsms.data;

import android.net.Uri;

/**
 * The Class SMSTable. It is not stable because that the Google
 * may change the table in any version of Android in future.
 */
public class SMSTable {

	/**
	 * The Class CanonicalAddresses.
	 */
	public static class CanonicalAddresses {

		/** The Constant CONTENT_URI. */
		public static final Uri CONTENT_URI = Uri
				.parse("content://mms-sms/canonical-addresses");

		/** The Constant _ID. */
		public static final String _ID = "_id";

		/** The Constant ADDRESS. */
		public static final String ADDRESS = "address";
	}

	/**
	 * The Class Addr.
	 */
	public static class Addr {

		/** The Constant _ID. */
		public static final String _ID = "_id";

		/** The Constant MSG_ID. */
		public static final String MSG_ID = "msg_id";

		/** The Constant CONTACT_ID. */
		public static final String CONTACT_ID = "contact_id";

		/** The Constant ADDRESS. */
		public static final String ADDRESS = "address";

		/** The Constant TYPE. */
		public static final String TYPE = "type";

		/** The Constant CHARSET. */
		public static final String CHARSET = "charset";
	}

	/**
	 * The Class SMS.
	 */
	public static class SMS {

		/** The Constant CONTENT_URI. */
		public static final Uri CONTENT_URI = Uri.parse("content://sms/");

		/** The Constant _ID. */
		public static final String _ID = "_id";

		/** The Constant THREAD_ID. */
		public static final String THREAD_ID = "thread_id";

		/** The Constant ADDRESS. */
		public static final String ADDRESS = "address";

		/** The Constant PERSON. */
		public static final String PERSON = "person";

		/** The Constant DATE. */
		public static final String DATE = "date";

		/** The Constant PROTOCOL. */
		public static final String PROTOCOL = "protocol";

		/** The Constant READ. */
		public static final String READ = "read";

		/** The Constant STATUS. */
		public static final String STATUS = "status";

		/** The Constant TYPE. */
		public static final String TYPE = "type";

		/** The Constant REPLY_PATH_PRESENT. */
		public static final String REPLY_PATH_PRESENT = "reply_path_present";

		/** The Constant SUBJECT. */
		public static final String SUBJECT = "subject";

		/** The Constant BODY. */
		public static final String BODY = "body";

		/** The Constant SERVICE_CENTER. */
		public static final String SERVICE_CENTER = "service_center";

		/** The Constant LOCKED. */
		public static final String LOCKED = "locked";
		
		/** The TYP e_ sm s_ in. */
		public static final int TYPE_SMS_IN = 1;
		
		/** The TYP e_ sm s_ out. */
		public static final int TYPE_SMS_OUT = 2;
		
		/** The TYP e_ sm s_ draft. */
		public static final int TYPE_SMS_DRAFT = 3;
		
		/** The Constant TYPE_SMS_SEND_ERROR. */
		public static final int TYPE_SMS_SEND_ERROR = 4;
	}

	/**
	 * The Class Threads.
	 */
	public static class Threads {

		/** The Constant CONTENT_URI. */
		public static final Uri CONTENT_URI = Uri
				.parse("content://mms-sms/conversations?simple=true");

		/** The Constant _ID. */
		public static final String _ID = "_id";

		/** The Constant DATE. */
		public static final String DATE = "date";

		/** The Constant MESSAGE_COUNT. */
		public static final String MESSAGE_COUNT = "message_count";

		/** The Constant RECIPIENT_IDS. */
		public static final String RECIPIENT_IDS = "recipient_ids";

		/** The Constant SNIPPET. */
		public static final String SNIPPET = "snippet";

		/** The Constant SNIPPET_CS. */
		public static final String SNIPPET_CS = "snippet_cs";

		/** The Constant READ. */
		public static final String READ = "read";

		/** The Constant TYPE. */
		public static final String TYPE = "type";

		/** The Constant ERROR. */
		public static final String ERROR = "error";

		/** The Constant HAS_ATTACHMENT. */
		public static final String HAS_ATTACHMENT = "has_attachment";
	}
}
